package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品物料对象 pro_materiel
 *
 * @author CFL
 * @date 2024-05-13
 */
public class ProMateriel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String matSn;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String matName;

    /** 物料数量 */
    @Excel(name = "物料数量")
    private String matNum;

    /** 物料价格 */
    @Excel(name = "物料价格")
    private Long matPrice;

    /** 逻辑删除;0：存在；1：删除 */
    @Excel(name = "逻辑删除;0：存在；1：删除")
    private Long isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMatSn(String matSn)
    {
        this.matSn = matSn;
    }

    public String getMatSn()
    {
        return matSn;
    }
    public void setMatName(String matName)
    {
        this.matName = matName;
    }

    public String getMatName()
    {
        return matName;
    }
    public void setMatNum(String matNum)
    {
        this.matNum = matNum;
    }

    public String getMatNum()
    {
        return matNum;
    }
    public void setMatPrice(Long matPrice)
    {
        this.matPrice = matPrice;
    }

    public Long getMatPrice()
    {
        return matPrice;
    }
    public void setIsDeleted(Long isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted()
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate)
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate()
    {
        return updatedDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("matSn", getMatSn())
                .append("matName", getMatName())
                .append("matNum", getMatNum())
                .append("matPrice", getMatPrice())
                .append("remark", getRemark())
                .append("isDeleted", getIsDeleted())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedBy", getUpdatedBy())
                .append("updatedDate", getUpdatedDate())
                .toString();
    }
}
